{%  extends "base.html"  %}

{% block mainbody %}

		<h3>浏览相册信息</h3>
		<table class="table">
			<tr>
				<th>id号</th>
				<th>标题</th>
				<th>图片</th>
				<th>时间</th>
				<th>操作	</th>

			</tr>

			{% for pic in pics %}
			<tr>
				<td>{{pic.id}}</td>
				<td>{{pic.name}}</td>
<!--				<td align="center"><img src="./static/s_{{ pic.picname }}"/></td>-->
				<td align="center"><img src="./static/s_1710292766.8878806.jpg"/></td>
				<td>{{pic.addtime|date:'Y-m-d H:i:s' }}</td>
				<td>
					<a href="{% url 'editpic' pic.id %}" class="btn btn-edit">编辑</a>
					<a href="{% url 'delpic' pic.id %}" class="btn btn-delete">删除</a>
				</td>

			</tr>
			{% endfor %}


				
		</table>

{%  endblock  %}
